<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>点击刷新</button>
    <button>点击获取哈希值</button>
    <script>
      //   var butEle = document.querySelector("button");
      //   butEle.onclick = function () {
      //     window.location.reload();
      //   };
      //   var butEle1 = document.querySelectorAll("button")[1];
      //   butEle1.onclick = function () {
      //     window.location.hash = "123";
      //     console.log(window.location.hash);
      //   };
    </script>
  </body>
</html>
